package com.qijian.maindata.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.qijian.common.annotation.Excel;
import com.qijian.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.util.Date;

/**
 * 检验计划详情对象 main_inspection_plan_detail
 *
 * @author qijian
 * @date 2022-12-14
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ToString
@TableName("main_inspection_plan_detail")
public class InspectionPlanDetail extends BaseEntity{
    private static final long serialVersionUID = 1L;

    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "${column.columnComment}")
    private Long id;

    @Excel(name = "检验主表id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "检验主表id")
    private Long mainId;

    @Excel(name = "检验点 0、材料  1、工序")
    @ApiModelProperty(value = "检验点 0、材料  1、工序")
    private Long type;

    @Excel(name = "检验名称")
    @ApiModelProperty(value = "检验名称")
    private String inspectionName;

    @Excel(name = "物料id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "物料id")
    private Long itemId;

    @Excel(name = "物料名称")
    @ApiModelProperty(value = "物料名称")
    private String itemName;

    @Excel(name = "工序id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "工序id")
    private Long processId;

    @Excel(name = "工序名称")
    @ApiModelProperty(value = "工序名称")
    private String processName;

    @Excel(name = "检验方案id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "检验方案id")
    private Long schemeId;

    @Excel(name = "检验方案名称")
    @ApiModelProperty(value = "检验方案名称")
    private String schemeName;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "检验完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    @ApiModelProperty(value = "检验完成时间")
    private Date inspectionCompleteTime;

    @Excel(name = "检验人id")
    @JsonSerialize(using= ToStringSerializer.class)
    @ApiModelProperty(value = "检验人id")
    private Long inspectionUserId;

    @Excel(name = "检验人名称")
    @ApiModelProperty(value = "检验人名称")
    private String inspectionNickName;

    @Excel(name = "状态")
    @ApiModelProperty(value = "状态")
    private Long status;

    @Excel(name = "检验要求")
    @ApiModelProperty(value = "检验要求")
    private String inspectionRequirements;

    @Excel(name = "检验结果")
    @ApiModelProperty(value = "检验结果,0已上传,1未上传")
    private Integer resStatus;

    @ApiModelProperty(value = "检验班组")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long checkType;

    private Integer sort;

    @ApiModelProperty(value = "图号")
    private String drawingNo;

}
